package com.lehecai.core.lottery.fetcher.lotterydraw.impl;

import com.lehecai.core.lottery.LotteryType;
import com.lehecai.core.lottery.fetcher.FetcherType;
import com.lehecai.core.lottery.fetcher.lotterydraw.LotteryDraw;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.AbstractLotteryDrawFetchWorker;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.LotteryDrawFetch568WorkerOfficial;
import com.lehecai.core.util.CoreFetcherUtils;

/**
 * Created by zhangzq on 14-8-4.
 */
public class LotteryDrawFetcher568 extends BaseLotteryDrawFetcher {

    protected LotteryDraw fetchOfficial(String phase) {
        AbstractLotteryDrawFetchWorker fetchWorker = new LotteryDrawFetch568WorkerOfficial(LotteryType.TJKL10);
        //抓取结果页面
//		LotteryDraw resultListObj = fetchWorker.fetchResult(phase);
		//抓取详情页面
        LotteryDraw resultDetailObj = fetchWorker.fetchResultDetail(phase);
        LotteryDraw returnObj = CoreFetcherUtils.getComparedResult(null, resultDetailObj);

        return returnObj;
    }

    @Override
    protected FetcherType getDefaultFetcherType() {
        return FetcherType.T_OFFICIAL;
    }


}
